package com.sun.dream.fish.mapstruct;

import com.sun.dream.fish.entity.TRoleEntity;
import com.sun.dream.fish.vo.back.RoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RoleMapBasic {
    RoleMapBasic INSTANCE = Mappers.getMapper(RoleMapBasic.class);

    RoleVO entityToVO(TRoleEntity roleEntity);

    List<RoleVO> entityToVO(List<TRoleEntity> roleEntity);

    TRoleEntity voToeEntity(RoleVO roleVO);
}
